package com.loie.xcx.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.loie.xcx.model.bo.IwInstance;
import com.loie.xcx.model.bo.IwTask;
import com.loie.xcx.model.dto.IwInstanceDTO;
import com.loie.xcx.model.dto.IwTaskDTO;
import com.loie.xcx.model.dto.IwinstanceQueryDTO;
import com.loie.xcx.model.dto.Moduletotal;
import io.lettuce.core.dynamic.annotation.Param;
import org.dom4j.DocumentException;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2023-03-01
 */
public interface IwInstanceService extends IService<IwInstance> {
    public String flow_agree(String recordid, String modulename, String openId,Boolean isagree, String... arr) throws Exception;
    public Boolean   changeusr(String recordid, String modulename, String olduser, String newuser) throws DocumentException;
    List<IwInstanceDTO> getflowlist(List<String> moudlelist,IwinstanceQueryDTO iwinstanceQueryDTO);
    List<IwInstanceDTO> getflowcompletedlist(List<String> moudlelist,IwinstanceQueryDTO iwinstanceQueryDTO);
    Integer getflowListTotal(List<String> moudlelist,IwinstanceQueryDTO iwinstanceQueryDTO);
    Integer getflowcompletedTotal(List<String> moudlelist,IwinstanceQueryDTO iwinstanceQueryDTO);
    List<Moduletotal> getflowModuleListTotal( List<String> moudlelist,
                                              IwinstanceQueryDTO iwinstanceQueryDTO);
    List<IwTaskDTO> getflowTaskList(IwinstanceQueryDTO iwinstanceQueryDTO);

}
